
<template>
    <div class="header">
        <!-- <div class="control" @click="control"></div> -->
        <div class="header-logo">
            <span>XX云平台管理后台</span>
        </div>
        <el-dropdown>
            <span class="header-name-span"
            >admin<i class="el-icon-arrow-down el-icon--right"></i
            ></span>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>退出</el-dropdown-item>
            </el-dropdown-menu>
        </el-dropdown>
    </div>
</template>

<script>
export default {
    components: {},
    data() {
        return {};
    },
    computed: {
    // 左侧菜单是否收起
        isCollapse() {
            return this.$store.state.isCollapse;
        },
    },
    watch: {},
    created() {},
    mounted() {},
    destroyed() {},
    methods: {
    // /**
    // *@description: TODO执行控制方法的时候加入节流或防抖
    // *@param{}
    // *@return:
    // */
    // control() {
    //     this.$store.commit('isCollapse', !this.isCollapse);
    // },
    },
};
</script>
<style lang='scss' scoped>
.el-dropdown-menu {
    background: #fff !important;
}

.el-dropdown-menu__item {
    color: #555 !important;
}

.el-icon-arrow-down {
    font-size: 12px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 70px;
    padding: 0 24px;
    background: #617286;

    .header-logo {
        color: #fff;
        font-weight: bold;
        font-size: 24px;
    }

    .header-name-span {
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }
}
</style>
